package com.example.demo;

import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;

public class HttpUrlConnectionGetImgActivity extends AppCompatActivity {
  private ImageView imageView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_http_url_connection_get_img);
        imageView = findViewById(R.id.img_get);
        Intent intent = getIntent();
        Bitmap bitmap = intent.getParcelableExtra("IMG");
        Log.e("xxxxxx", String.valueOf(bitmap));

        imageView.setImageBitmap(bitmap);




    }
}
